import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';

export default tseslint.config(
  eslint.configs.recommended,
  ...tseslint.configs.recommended,
  {
    rules: {
      '@typescript-eslint/no-explicit-any': 'warn',
      curly: ['error', 'all'],
      'no-irregular-whitespace': 'off',
      '@typescript-eslint/no-unused-expressions': 'error',
      'no-async-promise-executor': 'warn',
      'no-console': ['error', { allow: ['warn', 'error'] }],
    },
  },
);
